package com.zx.fragmentlearn;

import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

import com.zx.fragmentlearn.activity.LearnActivity1;
import com.zx.fragmentlearn.activity.LearnActivity2;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//
        setContentView(R.layout.activity_main);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.main, menu);
        return super.onCreateOptionsMenu(menu);
    }


    public void LearnActivity1(View v) {
        Intent intent = new Intent(this, LearnActivity1.class);
        startActivity(intent);
    }

    public void LearnActivity2(View v) {
        Intent intent = new Intent(this, LearnActivity2.class);
        startActivity(intent);
    }
}
